# encoding: utf-8
"""
Input arguments (Parameters) for zones resources RESTful API
-----------------------------------------------------------
"""

from flask_marshmallow import base_fields
from flask_restplus_patched import Parameters
from flask_restplus_patched import PostFormParameters, PatchJSONParameters

from . import schemas
from .models import AutoTest


class InitParameters(Parameters):
    path = base_fields.String(
        description = "自动测试用例路径",
        required = True
    )
    isClean = base_fields.Boolean(
        description = "是否清空",
        missing = False,
        required = False
    )


class GetParameters(Parameters):
    pass


class DoAutoTestParameters(Parameters):
    tags = base_fields.String(
        description = "自动测试的tag,多个tag用英文逗号隔开",
        missing = None,
        required = False
    )
    cases = base_fields.String(
        description = "自动测试用例id,多个tag用英文逗号隔开",
        missing = None,
        required = False
    )
    id = base_fields.String(
        description = "记录id",
        required = True
    )
